package cn.wx.read.tool.generator;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;


@Controller
public class GeneratorController {
	
	@Autowired
	private GeneratorService generatorService;
	
	@RequestMapping(value = "/gener" ,method = RequestMethod.GET)
    public String generator(HttpServletRequest request, Model model){
		model.addAttribute("mytables", generatorService.loadTable());
        return "generator/index";
    }

}
